package com.boang.entity;

/*
    @author:sa
    @date:2024/11/19 16:25
*/
public class SavingAccount extends Account {
    public SavingAccount(String cardNo, String passwd, int balance) {
        super(cardNo, passwd, balance);
    }

    @Override
    public void save(int money) {
        this.balance += money;
    }

    @Override
    public void deposit(int m) {
        this.balance -= m;
    }
}